import { createApp } from 'vue'
// import './style.css'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import './assets/common.less'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import log from 'electron-log/renderer'

Object.assign(console, log.functions);

const app = createApp(App);
app.use(ElementPlus);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.mount('#app').$nextTick(() => {
  // Use contextBridge
  // window.ipcRenderer.on('main-process-message', (_event, message) => {
  //   console.log(`main msg: ${message}`);
  // })
});
